package com.oss.controller.oss;

import com.oss.service.oss.DataImportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/dataImport")
public class DataImportController {
    @Autowired
    DataImportService dataImportService;

    /**
     * 导入客户的交易相关数据
     * @param file
     */
    @PostMapping(value="/importTradeInfo")
    public void importTradeInfo(MultipartFile file,String account) throws Exception {
        dataImportService.importTradeInfo(file,account);
    }

}